<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Comparison Function Signature Change</title>
    <link rel="stylesheet" href="gettingStarted.css" type="text/css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
    <link rel="start" href="index.html" title="Berkeley DB Installation and Build Guide" />
    <link rel="up" href="upgrade_60_toc.html" title="Chapter 11.  Upgrading Berkeley DB 11.2.5.3 applications to Berkeley DB 12.1.6.0" />
    <link rel="prev" href="seq_datatype.html" title="Sequence Datatype Changes" />
    <link rel="next" href="license_change60.html" title="License Change" />
  </head>
  <body>
    <div xmlns="" class="navheader">
      <div class="libver">
        <p>Library Version 12.1.6.2</p>
      </div>
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">Comparison Function Signature Change</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="seq_datatype.html">Prev</a> </td>
          <th width="60%" align="center">Chapter 11.  Upgrading Berkeley DB 11.2.5.3 applications to Berkeley DB 12.1.6.0 </th>
          <td width="20%" align="right"> <a accesskey="n" href="license_change60.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <div class="titlepage">
        <div>
          <div>
            <h2 class="title" style="clear: both"><a id="compare_func"></a>Comparison Function Signature Change</h2>
          </div>
        </div>
      </div>
      <p> 
            A new parameter has been added to the comparison
            callback set by the following methods:
        </p>
      <div class="itemizedlist">
        <ul type="disc">
          <li>
            <a href="../api_reference/C/dbset_bt_compare.html" class="olink">DB-&gt;set_bt_compare()</a>
          </li>
          <li>
            <a href="../api_reference/C/dbset_dup_compare.html" class="olink">DB-&gt;set_dup_compare()</a>
          </li>
          <li>
            <a href="../api_reference/C/dbset_h_compare.html" class="olink">DB-&gt;set_h_compare()</a>
          </li>
        </ul>
      </div>
      <p>
            The new parameter is the
            <code class="literal">locp</code> parameter, and it is the last
            parameter required in the callback's signature. It is
            intended for internal use only. In customer code, the
            parameter must be set to <code class="literal">NULL</code>.
        </p>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="seq_datatype.html">Prev</a> </td>
          <td width="20%" align="center">
            <a accesskey="u" href="upgrade_60_toc.html">Up</a>
          </td>
          <td width="40%" align="right"> <a accesskey="n" href="license_change60.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">Sequence Datatype Changes </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> License Change</td>
        </tr>
      </table>
    </div>
  </body>
</html>
